import request from '@/utils/request'

// 登录请求
export function loginApi(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
//  获取用户资料
export function loginGetInfo(token) {
  return request({
    url: '/sys/profile',
    method: 'get',
    params: { token }
  })
}
// 修改密码
export const updatePwdApi = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
